package com.kobe.Pact.service.Impl;

import com.kobe.Pact.domain.DailyUser;
import com.kobe.Pact.mapper.DailyMapper;
import com.kobe.Pact.service.DailyService;
import com.kobe.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

@Service
public class DailyServiceImpl implements DailyService {

    @Autowired
    private DailyMapper dailyMapper;


    @Override
    public List<DailyUser> selectDailyUserList(DailyUser dailyUser) {
        return dailyMapper.listDaily(dailyUser);
    }

    @Override
    public int addDailyUser(DailyUser dailyUser) {
        return dailyMapper.addDaily(dailyUser);
    }

    @Override
    public int updateDailyUser(DailyUser dailyUser) {
        return dailyMapper.updateDaily(dailyUser);
    }

    @Override
    public DailyUser selectDailyById(Long contractId) {
        return dailyMapper.selectDailyById(contractId);
    }
}
